import { get, post } from '@/http'
import qs from 'qs'
import type { ILogin } from './types'
import { pa } from 'element-plus/es/locale'

enum URL {
  loginApi = '/loginApi',
  logoutApi = '/logoutApi',
  getUserInfoApi = 'getUserInfoApi'
}

export function loginApi(params: any) {
	return post('/sso/login-research-back', qs.stringify(params))
}

export function getUserInfoApi() {
	return get('/sso/get-research-back-user')
}

export function logoutApi() {
	return get('/sso/logout-research-back')
}
